package com.yt.system.dao;

import com.yt.system.domain.Vote;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface VoteMapper {
    int deleteByPrimaryKey(Integer vid);

    int insert(Vote record);

    int insertSelective(Vote record);

    Vote selectByPrimaryKey(Integer vid);

    int updateByPrimaryKeySelective(Vote record);

    int updateByPrimaryKey(Vote record);

    List<Vote> getVotes(Integer actid);

    List<Vote> getVotesBefore(Integer actid);

    Vote getVoteByaidAndactid(Integer aid, Integer actid);

    List<Vote> getVotesForGroup(Integer actid);

    List<Vote> getVotesBeforeForGroup(Integer actid);
}